const conn = require('../../libs/DB/Conn');
const operationRecord = require("../sys/operationRecordAction");
module.exports = async function (params) {

    let updateObj = {
        group_name:params.groupName,
    };
    let updateSql = `update user_group SET ? WHERE group_id = ?`;
    await conn(updateSql, [updateObj, params.groupId]);
    await operationRecord(params);
    return {success: true, message: '修改成功'}
};